package com.mallcai.bigdata.uid.worker;

import com.mallcai.bigdata.uid.DefaultUidGenerator;

/**
 * described :
 * Represents a worker id assigner for {@link DefaultUidGenerator}
 * Created by oneape<oneape15@163.com> on 2019-04-04 14:56.
 * Modify:
 */
public interface WorkerIdAssigner {

    /**
     * Assign worker id for {@link DefaultUidGenerator}
     *
     * @return assigned worker id
     */
    long assignWorkerId();
}
